package com.leslie.springboottest.enums;

public enum PersonResponseEnum {
    UNKNOW_ERR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    DATA_ERR(1, "crud data error"),
    PRIMARY_SCHOOL(100, "你是小学生"),
    MIDDLE_SCHOOL(101, "你是初中生")
    ;

    private Integer code;
    private String message;

    PersonResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
